package com.ssy.lingxi.marketing.entity.activity;

import javax.persistence.*;
import java.io.Serializable;

/**
 *  平台活动外部记录
 * @author ds
 * @date 2021/6/18
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "mk_platform_activity_outer_record",
        indexes = {@Index(name = "mk_platform_activity_outer_record_activity_id_idx", columnList = "activityId"),
                @Index(name = "mk_platform_activity_outer_record_sign_up_id_idx", columnList = "signUpId")})
public class PlatformActivityOuterRecordDO implements Serializable {

    private static final long serialVersionUID = 7377884355782192501L;
    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "platform_activity_outer_record_seq")
    @SequenceGenerator(sequenceName = "mk_platform_activity_outer_record_seq", name = "platform_activity_outer_record_seq", allocationSize = 1)
    private Long id;

    /**
     * 平台活动id
     */
    @Column(columnDefinition = "int8")
    private Long activityId;

    /**
     * 活动报名id
     */
    @Column(columnDefinition = "int8")
    private Long signUpId;

    /**
     * 用户id
     */
    @Column(columnDefinition = "int8")
    private Long userId;
    /**
     * 会员id
     */
    @Column(columnDefinition = "int8")
    private Long memberId;

    /**
     * 角色id
     */
    @Column(columnDefinition = "int8")
    private Long roleId;

    /**
     * 角色名称
     */
    @Column(columnDefinition = "varchar(100)")
    private String roleName;

    /**
     * 外部状态：PlatformActivityOuterStatusEnum/PlatformActivitySignUpOuterStatusEnum
     */
    @Column(columnDefinition = "int")
    private Integer status;

    /**
     * 状态名称
     */
    @Column(columnDefinition = "varchar(50)")
    private String statusName;

    /**
     * 操作
     */
    @Column(columnDefinition = "varchar(50)")
    private String operate;

    /**
     * 操作时间
     */
    @Column(columnDefinition = "int8")
    private Long operateTime;

    /**
     * 审核意见
     */
    @Column(columnDefinition = "varchar(120)")
    private String opinion;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Long getSignUpId() {
        return signUpId;
    }

    public void setSignUpId(Long signUpId) {
        this.signUpId = signUpId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }

    public Long getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Long operateTime) {
        this.operateTime = operateTime;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }
}
